package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitPoliticalRouter(Router *gin.RouterGroup)  {
	PoliticalRouter := Router.Group("political").Use(middleware.JWTAuth())
	{
		PoliticalRouter.GET("/getPoliticalList", v1.GetPoliticalList)
		PoliticalRouter.POST("/addPolitical", v1.AddOnePolitical)
		PoliticalRouter.PUT("/updatePolitical", v1.UpdatePolitical)
		PoliticalRouter.DELETE("/deletePolitical", v1.DeletePolitical)
	}
}

